/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package netsend.server.common;

import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Toolkit;

/**
 *
 * @author X64-MEDIA
 */
public class Functions {
    // <editor-fold defaultstate="collapsed" desc="method to get center of screen and position dialog/main frame there">
    public void positionScreen(Frame frame) {
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        int x = (int) ((d.getWidth() - frame.getWidth()) / 2);
        int y = (int) ((d.getHeight() - frame.getHeight()) / 2);
        frame.setLocation(x, y);
    }//end </editor-fold>
}
